package cn.com.huzo.model.entities.manufacture;

import huzofw.model.entities.BaseEntity;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 加工费计算主记录实体类
 * <p>
 * @author 吴旭
 */
public class CmtSettlementSlipHeaderEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -168636806323468958L;
    private Long HeaderId;
    private String BillNo;
    private String SlipYear;
    private String SlipMonth;
    private String Description;     // 备注

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public String getBillNo() {
        return BillNo;
    }

    public void setBillNo(String BillNo) {
        this.BillNo = BillNo;
    }

    public String getSlipYear() {
        return SlipYear;
    }

    public void setSlipYear(String SlipYear) {
        this.SlipYear = SlipYear;
    }

    public String getSlipMonth() {
        return SlipMonth;
    }

    public void setSlipMonth(String SlipMonth) {
        this.SlipMonth = SlipMonth;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof CmtSettlementSlipHeaderEntity)) {
            return false;
        }

        final CmtSettlementSlipHeaderEntity that = (CmtSettlementSlipHeaderEntity) o;

        return new EqualsBuilder()
                .append(this.getHeaderId(), that.getHeaderId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + getHeaderId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
